﻿@model IPagedList<PaymentBank>
<div class="pageHeader">
    <form id="pagerForm" onsubmit="return navTabSearch(this);" action="/payment/banks"
    method="post">
    <div class="searchBar">
        <ul class="searchContent">
            <li>
                <label>
                    名 称：</label>
                <input type="text" name="name" value="@(ViewBag.Name)" />
            </li>
            <li>
                <label>
                    状 态：</label>
                <select name="status">
                    <option value="">请选择</option>
                    <option value="True" @(ViewBag.Status == true ? "selected=selected" : string.Empty)>
                        可用</option>
                    <option value="False" @(ViewBag.Status == false ? "selected=selected" : string.Empty)>
                        不可用</option>
                </select>
            </li>
        </ul>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                查找</button></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/payment/bank" target="dialog"><span>添加</span></a></li>
            <li><a class="edit" href="/payment/bank/{param}" target="dialog"><span>编辑</span></a></li>
            <li><a class="delete" href="/payment/deletebank/{param}" target="ajaxTodo" title="确定要删除吗?">
                <span>删 除</span></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layouth="138">
        <thead>
            <tr>
                <th width="200">
                    名 称
                </th>
                <th width="120">
                    状 态
                </th>
                <th width="220">
                    图 片
                </th>
                <th>
                    描 述
                </th>
                <th width="150">
                    添加时间
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var o in Model)
            {
                <tr target="param"  rel="@(o.Id)">
                    <td>@o.Name
                    </td>
                    <td>@(o.Status ? "可用" : "不可用")
                    </td>
                    <td>@o.Image
                    </td>
                    <td>@o.Description
                    </td>
                    <td>@o.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")
                    </td>
                </tr>
            }
        </tbody>
    </table>@Pager.GetHtml(Model.PageIndex, Model.PageSize, Model.TotalRecords)
</div>
